import server from "../../utils/request";

// 查询列表
export function getList(queryParams) {
    return server.get('/water/query', { params: queryParams });
};

// 查询设备
export function waterdevice(queryParams) {
    return server.get('/water/waterdevice', { params: queryParams });
};
// 参数查询
export function getSearch(ph) {
    return server.get('/water/query?wateringfrequency=' + ph);
};

// 删除接口 
export function getDelete(id) {
    return server.delete('/water/delete?wid=' + id);
};
//新增接口
export function getAdd(data) {
    return server.post('/water/add', data);
};
//修改接口
export function getUpdate(data) {
    return server.put('/water/update', data);
};